'use strict'

const koa = require('koa')
const logger = require('koa-logger')
const v1 = require('./src/api/v1')
const pageNotFound = require('./src/middlewares/404')

const app = koa()

// logger
app.use(logger())

app.use(v1.routes())

app.use(pageNotFound)

app.listen(3000)